It might also be the case that you have to use ResEdit to get the catalog
info for your files and clear the INITed field, and rebuild the desktop
afterwards.
HTH
--Aidan
---------------------------
From kgardner@mail.nuc.ucla.edu (Kent Gardner)
Subject: How do you call math routines in a code resource
Date: 30 Sep 1996 16:26:14 GMT
Organization: UCLA
I am using the Symantec C++ compiler to write a code resource that
requires calls to math routines. Math routines (e.g., SIN) are not
part of the ANSI-A4 library. Any suggestions on how to make the call.
I assume I'll need to save an restore registers... Is there an
example out there on how to do this. Thanks in advance.
Kent Gardner
Pharmacology/Crump Institute, UCLA
B2-086 CHS 694817
Los Angeles, California 90095
e-mail: gardner@mail.nuc.ucla.edu
+++++++++++++++++++++++++++
From andrewc@vasci.com (Andrew Cunningham)
Date: Mon, 30 Sep 1996 18:42:32 -0700
Organization: Vibro-Acoustic Sciences Inc
In article <kgardner-3009960929290001@149.142.171.200>,
kgardner@mail.nuc.ucla.edu (Kent Gardner) wrote:
> I am using the Symantec C++ compiler to write a code resource that
> requires calls to math routines. Math routines (e.g., SIN) are not
> part of the ANSI-A4 library. Any suggestions on how to make the call.
> I assume I'll need to save an restore registers... Is there an
> example out there on how to do this. Thanks in advance.
>
> Kent Gardner
Kent,
Easy solution - just add the library sources you need to the math library
right into your code resource project! They just left out that stuff to
keep the ANSI-A4 libary small.
Andrew
--
Andrew Cunningham
Vibro-Acoustic Sciences Inc
Ph: +1-(619) 597 7535
Fax: +1-(619) 597 7414
e-mail: andrewc@vasci.com
+++++++++++++++++++++++++++
From jgarden@192.219.29.90
Date: 3 Oct 96 15:02:49 -0300
Organization: isis, Incorporated
>I am using the Symantec C++ compiler to write a code resource that
>requires calls to math routines. Math routines (e.g., SIN) are not
>part of the ANSI-A4 library. Any suggestions on how to make the call.
>I assume I'll need to save an restore registers... Is there an
>example out there on how to do this. Thanks in advance.
>
>Kent Gardner
>
I haven't tried it myself, but you might try just including the source for
the math routines - ie. math.c or whatever.
JG@PI
+++++++++++++++++++++++++++
From paul@graphsoft.com (Paul C. Pharr)
Date: Thu, 03 Oct 1996 19:06:35 -0400
Organization: Graphsoft, Inc.
In article <kgardner-3009960929290001@149.142.171.200>,
kgardner@mail.nuc.ucla.edu (Kent Gardner) wrote:
>I am using the Symantec C++ compiler to write a code resource that
>requires calls to math routines. Math routines (e.g., SIN) are not
>part of the ANSI-A4 library. Any suggestions on how to make the call.
>I assume I'll need to save an restore registers... Is there an
>example out there on how to do this. Thanks in advance.
>
Although I use Metrowerks compilers these days, I recall that simply
adding math.c to the ANSI/A4 project & rebuilding does the trick. If you
need to use sprintf with floating point numbers, you also need to set the
prefix for that project to enable floating point support.
Paul C. Pharr
+++++++++++++++++++++++++++
From paul@graphsoft.com (Paul C. Pharr)
Date: Thu, 03 Oct 1996 19:06:35 -0400
Organization: Graphsoft, Inc.
In article <kgardner-3009960929290001@149.142.171.200>,
kgardner@mail.nuc.ucla.edu (Kent Gardner) wrote:
>I am using the Symantec C++ compiler to write a code resource that
>requires calls to math routines. Math routines (e.g., SIN) are not
>part of the ANSI-A4 library. Any suggestions on how to make the call.
>I assume I'll need to save an restore registers... Is there an
>example out there on how to do this. Thanks in advance.
>
Although I use Metrowerks compilers these days, I recall that simply
adding math.c to the ANSI/A4 project & rebuilding does the trick. If you
need to use sprintf with floating point numbers, you also need to set the
prefix for that project to enable floating point support.
Paul C. Pharr
---------------------------
From timmyd@netcom.com (Tim DeBenedictis)
Subject: How to create MacOS 6-7 dual-boot system?
Date: Thu, 26 Sep 1996 21:46:50 GMT
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
I got a hold of an ancient Mac IIci in order to test some software with
very old Mac System Software. I want to install System 6.0.8, 7.0.1,
7.1.3, and 7.5.5 all on this machine; in order to do so, I need to divide
the hard drive into (at least) 4 partitions, each containing the
requisite Mac system software.
When I used Apple's HD SC Setup program to custom-partition the drive,
however, I ran into a problem: once I created a Mac volume on the drive,
the HD SC Setup program would no longer present me with the option of
creating another one! This was true with the version of HD SC Setup
included with -every- System Software version mentioned above. Is there
any way to get Apple HD SC Setup to do what I want? Or do I have to use
a third-party HD formatting utility like FWB or Silverlining?
Alternatively, is it possible to create a multiple-System configuration
without partitioning the hard drive? Somewhere I remeber seeing a
control panel (?) called System Picker (I think) which would let the user
pick an "active" system folder on a single drive with multiple System
folders.
Would simply renaming the System Folders I don't want to use something
other than "System Folder" work? I haven't tried this yet but I don't
think it will be this easy.
Thanks, and please send e-mail as well as posting,
-Tim DeBenedictis
timmyd@netcom.com
+++++++++++++++++++++++++++
From nevin@CS.Arizona.EDU (Nevin ":-]" Liber)
Date: Sat, 28 Sep 1996 11:32:23 -0700
Organization: University of Arizona CS Department, Tucson "It's too dang hot!" Arizona
In article <timmydDyD0I2.H6K@netcom.com>, timmyd@netcom.com (Tim
DeBenedictis) wrote:
> When I used Apple's HD SC Setup program to custom-partition the drive,
> however, I ran into a problem: once I created a Mac volume on the drive,
> the HD SC Setup program would no longer present me with the option of
> creating another one! This was true with the version of HD SC Setup
> included with -every- System Software version mentioned above. Is there
> any way to get Apple HD SC Setup to do what I want?
Make sure you have a copy of the latest Apple HD SC Setup (7.3.5); I don't
believe that the previous versions allow multiple partitions.
> Alternatively, is it possible to create a multiple-System configuration
> without partitioning the hard drive?
Yes. What makes a system folder "blessed" is having both "Finder" and
"System" in it. You can unbless a folder by moving one of these out of the
system folder (I usually put the Finder in a subfolder), and bless a
different one by putting the appropriate Finder and System files in the
same folder. I know that there are some utilities out there that do this,
but I haven't used any of them in years.
> Would simply renaming the System Folders I don't want to use something
> other than "System Folder" work?
You can rename system folders to whatever you want; it doesn't matter.
--
Nevin ":-)" Liber nevin@CS.Arizona.EDU (520) 293-2799
http://www.cs.arizona.edu/people/nevin/
+++++++++++++++++++++++++++
From chaz@visi.com (Chaz Larson)
Date: Thu, 03 Oct 1996 22:41:57 -0500
Organization: Mystery Men
In article <timmydDyD0I2.H6K@netcom.com>, timmyd@netcom.com (Tim
DeBenedictis) wrote:
> Or do I have to use
> a third-party HD formatting utility like FWB or Silverlining?
Yes, so far as I know.
> Alternatively, is it possible to create a multiple-System configuration
> without partitioning the hard drive? Somewhere I remeber seeing a
> control panel (?) called System Picker (I think) which would let the user
> pick an "active" system folder on a single drive with multiple System
> folders.
oooh. Don't do this. In theory, it will work, but the method is fraught
with peril.
> Would simply renaming the System Folders I don't want to use something
> other than "System Folder" work? I haven't tried this yet but I don't
> think it will be this easy.
Say you have four system folders on the disk. To make System Folder A
active, you'd make sure that it was the only one in which System and
FInder are at the same level, then open and close it, then reboot.
But you really don't want to do that. Partition the drive, or better yet
get a zip drive and use four zip carts for your four Systems. If you
regularly change between System 6, 7, and 7.5, you'll be rebuilding your
desktop with every boot. Yuck.
chazl
10.03.96
- ------
+++++++++++++++++++++++++++
From chaz@visi.com (Chaz Larson)
Date: Thu, 03 Oct 1996 22:41:57 -0500
Organization: Mystery Men
In article <timmydDyD0I2.H6K@netcom.com>, timmyd@netcom.com (Tim
DeBenedictis) wrote:
> Or do I have to use
> a third-party HD formatting utility like FWB or Silverlining?
Yes, so far as I know.
> Alternatively, is it possible to create a multiple-System configuration
> without partitioning the hard drive? Somewhere I remeber seeing a
> control panel (?) called System Picker (I think) which would let the user
> pick an "active" system folder on a single drive with multiple System
> folders.
oooh. Don't do this. In theory, it will work, but the method is fraught
with peril.
> Would simply renaming the System Folders I don't want to use something
> other than "System Folder" work? I haven't tried this yet but I don't
> think it will be this easy.
Say you have four system folders on the disk. To make System Folder A
active, you'd make sure that it was the only one in which System and
FInder are at the same level, then open and close it, then reboot.
But you really don't want to do that. Partition the drive, or better yet
get a zip drive and use four zip carts for your four Systems. If you
regularly change between System 6, 7, and 7.5, you'll be rebuilding your
desktop with every boot. Yuck.
chazl
10.03.96
- ------
---------------------------
From billv@Eng.Sun.COM (Bill Vaughan)
Subject: How to do Unix-like scripting on a Mac?
Date: 24 Sep 1996 21:49:44 GMT
Organization: Sun Microsystems Inc.
I need to be able to do Unix-like scripting on the Mac to set environment variables and run tools/apps without going through the GUI. (No, I'm not one of those Unix/DOS Neanderthals who walks around grunting, "Me, I REAL man, I use command line interface, GUI for sissies.") I need to set up a multi-platform test harness. I have considered AppleScript, but the problem is that I will be working with some tools and apps which are not AppleScript Aware. Any suggestions would be greatly appreciated.
Thanks,
Bill
+++++++++++++++++++++++++++
From Bob.Dalgleish@sk.sympatico.ca (Robert Dalgleish)
Date: Wed, 25 Sep 1996 09:11:42 -0600
Organization: Industrial Strength Software
In article <529l1o$8vj@engnews2.Eng.Sun.COM>, billv@Eng.Sun.COM wrote:
>>I need to be able to do Unix-like scripting on the Mac to set environment
>variables and run tools/apps without going through the GUI. (No, I'm not
>one of those Unix/DOS Neanderthals who walks around grunting, "Me, I REAL
>man, I use command line interface, GUI for sissies.") I need to set up a
>multi-platform test harness. I have considered AppleScript, but the
>problem is that I will be working with some tools and apps which are not
>AppleScript Aware. Any suggestions would be greatly
>appreciated.
The best multiplatform test harness would be Perl. The MacPerl implementation
is currently at Perl 5.001, with an advanced beta test version at 5.002. It is
very competent and fast. The MacPerl FAQ can be found at